package com.example.utils;

import com.example.service.IEmployeeService;

import java.util.HashMap;
import java.util.Map;

public class R {
    private Integer code;//编码：1成功，0和其他数字为失败
    private Object data; //数据
    private String msg; //提示信息
    private Map map = new HashMap(); //动态数据

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map getMap() {
        return map;
    }

    public void setMap(Map map) {
        this.map = map;
    }

    public R() {
    }

    public R(Integer code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }

    public R(Integer code, Object data) {
        this.code = code;
        this.data = data;
    }
    public R(Integer code, String  msg) {
        this.code = code;
        this.msg = msg;
    }

    public R(Integer code) {
        this.code = code;
    }
}
